<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use \dmstr\bootstrap\Tabs;
use yii\helpers\StringHelper;

/**
* @var yii\web\View $this
* @var yiike\store\models\Stores $model
* @var yii\widgets\ActiveForm $form
*/

?>

<div class="stores-form">

    <?php $form = ActiveForm::begin([
    'id' => 'Stores',
    'layout' => 'horizontal',
    'enableClientValidation' => true,
    'errorSummaryCssClass' => 'error-summary alert alert-danger',
    'fieldConfig' => [
             'template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}",
             'horizontalCssClasses' => [
                 'label' => 'col-sm-2',
                 #'offset' => 'col-sm-offset-4',
                 'wrapper' => 'col-sm-8',
                 'error' => '',
                 'hint' => '',
             ],
         ],
    ]
    );
    ?>

    <div class="">
        <?php $this->beginBlock('main'); ?>

        <p>
            

<!-- attribute weid -->
			<?= $form->field($model, 'weid')->textInput() ?>

<!-- attribute uid -->
			<?= $form->field($model, 'uid')->textInput() ?>

<!-- attribute cityid -->
			<?= $form->field($model, 'cityid')->textInput(['maxlength' => true]) ?>

<!-- attribute type -->
			<?= $form->field($model, 'type')->textInput() ?>

<!-- attribute pcate -->
			<?= $form->field($model, 'pcate')->textInput(['maxlength' => true]) ?>

<!-- attribute ccate -->
			<?= $form->field($model, 'ccate')->textInput(['maxlength' => true]) ?>

<!-- attribute level -->
			<?= $form->field($model, 'level')->textInput() ?>

<!-- attribute isfirst -->
			<?= $form->field($model, 'isfirst')->textInput() ?>

<!-- attribute top -->
			<?= $form->field($model, 'top')->textInput() ?>

<!-- attribute mode -->
			<?= $form->field($model, 'mode')->textInput() ?>

<!-- attribute checked -->
			<?= $form->field($model, 'checked')->textInput() ?>

<!-- attribute status -->
			<?= $form->field($model, 'status')->textInput() ?>

<!-- attribute displayorder -->
			<?= $form->field($model, 'displayorder')->textInput() ?>

<!-- attribute isvip -->
			<?= $form->field($model, 'isvip')->textInput() ?>

<!-- attribute vip_start -->
			<?= $form->field($model, 'vip_start')->textInput() ?>

<!-- attribute vip_end -->
			<?= $form->field($model, 'vip_end')->textInput() ?>

<!-- attribute max_sub -->
			<?= $form->field($model, 'max_sub')->textInput() ?>

<!-- attribute maker_id -->
			<?= $form->field($model, 'maker_id')->textInput() ?>

<!-- attribute company_id -->
			<?= $form->field($model, 'company_id')->textInput() ?>

<!-- attribute commission_rate -->
			<?= $form->field($model, 'commission_rate')->textInput() ?>

<!-- attribute service_rate -->
			<?= $form->field($model, 'service_rate')->textInput() ?>

<!-- attribute sold -->
			<?= $form->field($model, 'sold')->textInput() ?>

<!-- attribute address -->
			<?= $form->field($model, 'address')->textInput(['maxlength' => true]) ?>

<!-- attribute discounts -->
			<?= $form->field($model, 'discounts')->textInput(['maxlength' => true]) ?>

<!-- attribute consume -->
			<?= $form->field($model, 'consume')->textInput(['maxlength' => true]) ?>

<!-- attribute description -->
			<?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>

<!-- attribute images -->
			<?= $form->field($model, 'images')->textarea(['rows' => 6]) ?>

<!-- attribute lat -->
			<?= $form->field($model, 'lat')->textInput(['maxlength' => true]) ?>

<!-- attribute lng -->
			<?= $form->field($model, 'lng')->textInput(['maxlength' => true]) ?>

<!-- attribute shop_quan_rate -->
			<?= $form->field($model, 'shop_quan_rate')->textInput(['maxlength' => true]) ?>

<!-- attribute combo -->
			<?= $form->field($model, 'combo')->textInput(['maxlength' => true]) ?>

<!-- attribute wx_mchid -->
			<?= $form->field($model, 'wx_mchid')->textInput(['maxlength' => true]) ?>

<!-- attribute alipay_mchid -->
			<?= $form->field($model, 'alipay_mchid')->textInput(['maxlength' => true]) ?>

<!-- attribute username -->
			<?= $form->field($model, 'username')->textInput(['maxlength' => true]) ?>

<!-- attribute tel -->
			<?= $form->field($model, 'tel')->textInput(['maxlength' => true]) ?>

<!-- attribute bank_account -->
			<?= $form->field($model, 'bank_account')->textInput(['maxlength' => true]) ?>

<!-- attribute title -->
			<?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>

<!-- attribute from_user -->
			<?= $form->field($model, 'from_user')->textInput(['maxlength' => true]) ?>

<!-- attribute bank -->
			<?= $form->field($model, 'bank')->textInput(['maxlength' => true]) ?>

<!-- attribute payee -->
			<?= $form->field($model, 'payee')->textInput(['maxlength' => true]) ?>

<!-- attribute logo -->
			<?= $form->field($model, 'logo')->textInput(['maxlength' => true]) ?>

<!-- attribute services -->
			<?= $form->field($model, 'services')->textInput(['maxlength' => true]) ?>

<!-- attribute place -->
			<?= $form->field($model, 'place')->textInput(['maxlength' => true]) ?>

<!-- attribute hours -->
			<?= $form->field($model, 'hours')->textInput(['maxlength' => true]) ?>

<!-- attribute businesslicense -->
			<?= $form->field($model, 'businesslicense')->textInput(['maxlength' => true]) ?>

<!-- attribute starttime -->
			<?= $form->field($model, 'starttime')->textInput(['maxlength' => true]) ?>

<!-- attribute endtime -->
			<?= $form->field($model, 'endtime')->textInput(['maxlength' => true]) ?>

<!-- attribute location_p -->
			<?= $form->field($model, 'location_p')->textInput(['maxlength' => true]) ?>

<!-- attribute location_c -->
			<?= $form->field($model, 'location_c')->textInput(['maxlength' => true]) ?>

<!-- attribute location_a -->
			<?= $form->field($model, 'location_a')->textInput(['maxlength' => true]) ?>

<!-- attribute bank_sub -->
			<?= $form->field($model, 'bank_sub')->textInput(['maxlength' => true]) ?>
        </p>
        <?php $this->endBlock(); ?>
        
        <?=
    Tabs::widget(
                 [
                    'encodeLabels' => false,
                    'items' => [ 
                        [
    'label'   => Yii::t('models', 'Stores'),
    'content' => $this->blocks['main'],
    'active'  => true,
],
                    ]
                 ]
    );
    ?>
        <hr/>

        <?php echo $form->errorSummary($model); ?>

        <?= Html::submitButton(
        '<span class="glyphicon glyphicon-check"></span> ' .
        ($model->isNewRecord ? '保存' : '保存'),
        [
        'id' => 'save-' . $model->formName(),
        'class' => 'btn btn-success'
        ]
        );
        ?>

        <?php ActiveForm::end(); ?>

    </div>

</div>

